// register
import register from '../../../scripts/angular/register.js';

// routers
import CourseRouter from '../routers/course.routers.js';

// services
import CourseService from '../services/courseService.js';
import arrayService from '../../app/services/arrayService.js';
import RunnerService from '../../runner/services/runnerService.js';
import ScoreService from '../../score/services/scoreService.js';

// controllers
import CourseController from '../controllers/course.controller.js';
import CourseListController from '../controllers/courselist.controller.js';
import CourseEditController from '../controllers/courseedit.controller.js';




angular
	.module('course.module', [
		'ngAnimate', 
		'ngSanitize', 
		'ui.router',
	    'ngMessages',  
		'chieffancypants.loadingBar', 
		'ngDialog', 
	    'mgcrea.ngStrap', 
		'oc.lazyLoad',
		'ng-sortable'
	])
	.config(CourseRouter)
	.factory('arrayService', arrayService)
	.controller('CourseController', CourseController)
	.controller('CourseListController', CourseListController)
	.controller('CourseEditController', CourseEditController)


register('course.module')
    .factory('CourseService', CourseService);